﻿using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.ComponentModel;
using System.Linq;
using System.Runtime.CompilerServices;
using System.Text;
using System.Threading.Tasks;

namespace CommonTools.UserControls.Toast
{
    public class ToastHelper
    {
        public static ToastData Toast = new ToastData();
    }

    public class ToastData : INotifyPropertyChanged
    {
        private ObservableCollection<Toast> toastList = new ObservableCollection<Toast>();
        public ObservableCollection<Toast> ToastList
        {
            get { return toastList; }
            set { toastList = value; OnPropertyChanged(); }
        }

        public event PropertyChangedEventHandler PropertyChanged;
        public void OnPropertyChanged([CallerMemberName] string strProperty = null)
        {
            if (PropertyChanged != null)
            {
                PropertyChanged(this, new PropertyChangedEventArgs(strProperty));
            }
        }
    }
}
